﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;


namespace AddDataToDatabaseWebApplication
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IInsertDataToDatabaseService" in both code and config file together.
    [ServiceContract]
    public interface IInsertDataToDatabaseService
    {
        [OperationContract]
        [WebInvoke(Method = "GET",
                          ResponseFormat = WebMessageFormat.Json,
                          UriTemplate = "question/account={adminId}_questionSetName={questionSetName}_questionName={questionName}")]
        string InsertAnTextQuestion(string adminId,string questionSetName, string questionName);

        [OperationContract]
        [WebInvoke(Method = "GET",
                          ResponseFormat = WebMessageFormat.Json,
                          UriTemplate = "question/account={adminId}_questionSetName={questionSetName}_questionName={questionName}_choice1={choice1}_choice2={choice2}_choice3={choice3}_choice4={choice4}_choice5={choice5}")]
        string InsertAnMCQuestion(string adminId, string questionSetName, string questionName, string choice1, string choice2, string choice3, string choice4, string choice5);
    }
}
